/**
 * 生产环境的配置内容
 */

module.exports = {
  // 环境名称
  env: 'prod',
  // 服务端口号
  port: 20091,
  // mysql配置
  // mysql: {
  //   connectionLimit: 10,
  //   host: '10.19.153.237',
  //   user: 'root',
  //   password: 'wkcwjmyd2017',
  //   database: 'jmyd_tool',
  //   multipleStatements: true,
  //   debug: false
  // },
  mysql: {
    connectionLimit: 5,
    connectTimeout  : 60 * 60 * 10000,
    aquireTimeout   : 60 * 60 * 10000,
    timeout         : 60 * 60 * 10000,
    host: '10.10.20.6',
    user: 'root',
    password: 'wkcwJmyd2017!',
    database: 'jmyd_tool',
    multipleStatements: true,
    debug: false
  },
  // mongodb配置
  // mongod: {
  //   uri: 'mongodb://10.19.134.173:27017,10.19.153.237:27017,10.19.49.146:27017/jmyd_tool?replicaSet=chizi',
  //   options: {
  //     poolSize: 5,
  //     useMongoClient: true,
  //     connectTimeoutMS: 1000 * 10
  //   }
  // },
  mongod: {
    uri: 'mongodb://10.10.20.1:27017,10.10.20.2:27017,10.10.20.3:27017/jmyd_tool?replicaSet=chizi',
    options: {
      poolSize: 5,
      useMongoClient: true,
      connectTimeoutMS: 10000 * 10
    }
  },
  // redis配置
  // redis: {
  //   host: '10.19.134.173',
  //   port: '6379',
  //   password: 'abcd1234'
  // },
  redis: {
    host: '10.19.134.173',
    port: '6379',
    password: 'abcd1234'
  },
  /**
   * log4js 配置文件
   *
   * 日志等级由低到高
   * ALL TRACE DEBUG INFO WARN ERROR FATAL OFF.
   *
   * 关于log4js的appenders的配置说明
   * https://github.com/nomiddlename/log4js-node/wiki/Appenders
   */
  log: {
    appenders:
    {
    // 控制台日志
      out: {
        // 日志类型
        type: 'console'
      }
    },
    categories: {
      default: { appenders: ['out'], level: 'INFO' }
    }
  },
  /**
   * 系统用配置项
   */
  // sys: {
  //   mongodImageUrl: 'http://resource.jmyida.com/jmyd-tool-image/',
  //   mongodRenderImageUrl: 'http://resource.jmyida.com/result/',
  //   testUrl:"http://jimuyida:20083/",
  //   renderExpireMinutes: 20
  // }
  sys: {
    mongodObjUrl: 'http://resource.jiaeda.com/jmyd-model-obj/',
    mongodFineUrl: 'http://resource.jiaeda.com/jmyd-model-fine/',
    mongodDaeUrl: 'http://resource.jiaeda.com/jmyd-model-dae/',
    mongodImageUrl: 'http://resource.jiaeda.com/jmyd-model-image/'
  },
};
